/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.beta.season2011.output.DSOutput;

import edu.wpi.first.wpilibj.DigitalOutput;

/**
 *
 * @author sakekasi
 */
public class DSOutput {
    protected DigitalOutput camLeft,camRight,camCenter;

    public DSOutput(int camLeft, int camRight, int camCenter) {
        this.camLeft=new DigitalOutput(camLeft);
        this.camRight=new DigitalOutput(camRight);
        this.camCenter=new DigitalOutput(camCenter);
    }

    public void setLights(DSOutputCommand command){
        this.camLeft.set(command.get(DSOutputCommand.CAM_LEFT)>0);
        this.camRight.set(command.get(DSOutputCommand.CAM_RIGHT)>0);
        this.camCenter.set(command.get(DSOutputCommand.CAM_CENTER)>0);
    }


}
